OnSyncClientListener

Listener for on-sync events on the client side. Will be fired for any and all updated configs, allowing inspection of other configs. For use in your own configs, consider directly implementing Config.onSyncClient

Register with EventApi.onSyncClient

Author

fzzyhmstrs

Since

0.5.0

Functions

Link copied to clipboard
abstract fun onSync(id: Identifier, config: Config)

Called by the onSyncServer event when the client side of a config is synced. NOTE: Only called if a restart prompt is not created (so if the game state will continue into game).